/**
 * 
 */
package com.star.rapid;

import cn.org.rapid_framework.generator.GeneratorFacade;
import cn.org.rapid_framework.generator.GeneratorProperties;

/**
 * @ClassName: GeneratorMain
 * @Description: TODO
 * @author starhq
 * @createtime 2014年10月7日 下午5:25:40
 * @email : jian.wang@shinsoft.net
 * @modify by TODO
 * @resaon
 * @edittime
 * @version 1.0
 * @copyright shinsoft
 */
public class GeneratorMain {

	public static void main(String[] args) throws Exception {
		GeneratorFacade g = new GeneratorFacade();
		String path = GeneratorMain.class.getResource("/") + "template";
		g.getGenerator().setTemplateRootDir(path);

		g.generateByTable("T_CheckIn", "T_Dictionary", "T_Lock", "T_Room",
				"T_Warning");

		Runtime.getRuntime().exec(
				"cmd.exe /c start "
						+ GeneratorProperties.getRequiredProperty("outRoot"));
	}
}
